<%@ page language="java" import="java.util.*,com.hanma.bean.User" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<%
	User user = (User)request.getAttribute("user");
%>
<form action="updateAction.do?id=<%= user.getId()%>" method="post">
	<table border="1" align="center" cellspacing="0" cellpadding="0" width="600">
		<tr align="center" height="50">
			<td colspan="2">会员修改</td>
		</tr>
		<tr align="center" height="50">
			<td>姓名</td>
			<td><input type="text" value="<%= user.getUsername()%>" name="username"></td>
		</tr>
		<tr align="center" height="50">
			<td>昵称</td>
			<td><input type="text" value="<%= user.getNickname()%>" name="nickname"></td>
		</tr>
		<tr align="center" height="50">
			<td>电话</td>
			<td><input type="text" value="<%= user.getTel()%>" name="tel"></td>
		</tr>
		<tr align="center" height="50">
			<td>邮箱</td>
			<td><input type="text" value="<%= user.getEmail()%>" name="email"></td>
		</tr>
		<tr align="center" height="50">
			<td>密码</td>
			<td><input type="password" value="<%= user.getPassword()%>" name="password"></td>
		</tr>
		<tr align="center" height="50">
			<td>新密码</td>
			<td><input type="password" value="" name="new_password"></td>
		</tr>
		<tr align="center" height="50">
			<td colspan="2">
			<input type="submit" value="提交">
			</td>
		</tr>
	</table>
</form>
</body>
</html>